import { MenuItem } from "@/scripts/dataTypes";
import { defineAsyncComponent, ref, shallowRef } from "vue";
import freeDrawing from '@/pages/modelserView/FreeDrawing.vue';
import circleDrawing from '@/pages/modelserView/CircleDrawing.vue';
import lineDrawing from '@/pages/modelserView/LineDrawing.vue';
import overheadLinesDrawing from '@/pages/modelserView/OverheadLinesDrawing.vue';
import recordlist from '@/pages/modelserView/Recordlist.vue';


export const modelserMenuList = ref<MenuItem[]>([
    {
        id: "freeDrawing",
        name: "自由绘制",
        com: shallowRef(freeDrawing),
        status: "none",
        icon: new URL('../../../assets/modelser/free.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/modelser/free_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/modelser/free_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "circleDrawing",
        name: "柱状裁剪",
        com: shallowRef(circleDrawing),
        status: "none",
        icon: new URL('../../../assets/modelser/circle.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/modelser/circle_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/modelser/circle_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "lineDrawing",
        name: "墙形裁剪",
        com: shallowRef(lineDrawing),
        status: "none",
        icon: new URL('../../../assets/modelser/line.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/modelser/line_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/modelser/line_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "overheadLinesDrawing",
        name: "接触网裁剪",
        com: shallowRef(overheadLinesDrawing),
        status: "none",
        icon: new URL('../../../assets/modelser/over.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/modelser/over_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/modelser/over_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "recordlist",
        name: "版本记录",
        com: shallowRef(recordlist),
        status: "none",
        icon: new URL('../../../assets/modelser/list.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/modelser/list_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/modelser/list_hover.png', import.meta.url).href,
    },
    {
        id: "location",
        name: "定位",
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/location.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/location_hover.png', import.meta.url).href,
    },
    {
        id: "refresh",
        name: "刷新",
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/refresh.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/refresh_hover.png', import.meta.url).href,
    },
])

